<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../../admin.inc.jsp"%>
<script>
	function toSubmit() {		
		var form = $("#form_dressupZedCard_edit");
		form.submit();
	}
	function callback(success, msg) {
		if (success) {
			alertMsg.info(msg);
			$.pdialog.closeCurrent();
			// 刷新列表
			var tabId = getCurrentNavtab().attr("tabid");
			if (tabId != null) {
				navTab.reload("", {
					navTabId : ""
				});
			}
		}else{
			alertMsg.warn(msg);
		}
	}
	
</script>
<div class="pageContent">
	<s:form name="myForm" id="form_dressupZedCard_edit" action="/admin/dressupZedCard/edit"
		method="POST" enctype="multipart/form-data" target="hidden_frame">
		<div class="pageFormContent" layoutH="58">
			<p class="nowrap">
				<label style="width:100px;">&nbsp;</label> 
				 <input type="file" name="image"
					id="image" />
			</p>
			
			<p style='height:60px; '>
				<label style="width:100px;">代表作：</label> 
				 <img alt="" src="${imageUrl }"  style='height:60px; border: 1px solid silver;'>
			</p>
			</div>
			
			<input type="hidden" name="zedCard.id" id="type" value="${zedCard.id}" />
		</div>
	</s:form>
	<div class="formBar">
		<ul>
			<li><div class="button">
					<div class="buttonContent">
						<button onclick="toSubmit()" type="button">确定</button>
					</div>
				</div></li>
			<li><div class="button">
					<div class="buttonContent">
						<button type="button" class="close">关闭</button>
					</div>
				</div></li>
		</ul>
	</div>
</div>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>